package com.sly.demoim.constant;

/**
 * 消息类型
 *
 * @author SLY
 * @date 2022/7/11
 */
public enum MessageType {
    /** 文本 */
    TEXT("TEXT", "文本"),
    /** 图片 */
    IMG("IMG", "图片"),
    ;
    private final String code;
    private final String name;

    MessageType(String code, String name){
        this.code = code;
        this.name = name;
    }

    public String getCode(){
        return code;
    }

    public String getName(){
        return name;
    }
}
